﻿<Page
    x:Class="VoiceSnap.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:VoiceSnap"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="using:Windows.UI.Xaml.Controls"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <TextBlock FontSize="15" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Initializing..." Margin="0,0,0,50" />
        <CaptureElement x:Name="capturePreview"/>
        <Button Name="takePicture" Click="TakePicture" VerticalAlignment="Bottom" HorizontalAlignment="Center">Take a picture</Button>
        <Image x:Name="imageCaptured" Stretch="None" Width="128" Height="96" VerticalAlignment="Top" HorizontalAlignment="Right" />
        <TextBlock x:Name="vcTagBlock" FontSize="21" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,60" />
    </Grid>

    <Page.BottomAppBar>
        <CommandBar>
            <CommandBar.PrimaryCommands>
                <AppBarButton
                    x:Name="PhotoSearchAppBarButton"
                    x:Uid="PhotoSearchAppBarButton"
                    Click="NavigateToPhotoSearch"
                    Icon="Pictures"
                    Label="My Pictures"/>
            </CommandBar.PrimaryCommands>
        </CommandBar>
    </Page.BottomAppBar>
</Page>
